import axios from '../axios'

/*
 * 首页数据加载接口
 */

// 首页数据
export const getDatas = (data) => {
    return axios({
        url: '/api/v1/datas',
        method: 'get',
        data
    })
}

// 获取文章资讯列表
export const getArticleList = (data) => {
    return axios({
        url: '/api/v1/articleList',
        method: 'get',
        data
    })
}

// 获取文章资讯
export const getArticle = (data) => {
    return axios({
        url: '/api/v1/article',
        method: 'post',
        data
    })
}
